package com.qishanor.system.model.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * @description: 用户展现类
 * @author: 周振林
 * @date: 2022-04-09
 * 
 * @Copyright: 博客：http://www.zhouzhenlin.com - 沉淀、分享、成长、让自己和他人都有所收获
 **/

@Data
@Accessors(chain = true)
public class SysUserInfoDto {

    private InnerUser userInfo=new InnerUser();

    private List<String> permissions=new ArrayList<>();

    private List<String> roles=new ArrayList<>();

    @Data
    public static class InnerUser{
        public InnerUser(){}
        public InnerUser(Integer userId, String username, String avatar) {
            this.userId = userId;
            this.username = username;
            this.avatar = avatar;
        }

        private Integer userId;
        private String username;
        private String avatar;
    }
}
